//
//  JHSUsersController.m
//  LogIn(登录)
//
//  Created by chenWei on 2017/3/22.
//  Copyright © 2017年 陈伟. All rights reserved.
//

#import "JHSUsersController.h"
#import "JHSUsersDetailViewController.h"

@interface JHSUsersController ()


@property (weak, nonatomic) IBOutlet UIView *iconView;





@end

@implementation JHSUsersController



- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationController.navigationBarHidden = YES;
    
    self.view.backgroundColor = [UIColor colorWithRed:116/ 255.0 green:191 / 255.0 blue:159 / 255.0 alpha:1];
    
    self.tableView.contentInset = UIEdgeInsetsMake(64, 0, 0, 0);
    
    
    //添加手势
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tap:)];
    
    [self.iconView addGestureRecognizer:tap];
    

    
    
}

//MARK:2- 点击手势执行的方法
- (void)tap:(UITapGestureRecognizer *)sender
{
    JHSUsersDetailViewController *vc = [[JHSUsersDetailViewController alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
    
}



//MARK:1- 选中 cell 进行跳转
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
    
    
    
    
    UIViewController *vc = [[UIViewController alloc]init];
    
    vc.view.backgroundColor = [UIColor redColor];
    
    [self.navigationController pushViewController:vc animated:YES];
    
}




@end
